package com.example.springhibernate.service.imple;

import com.example.springhibernate.dto.Company;
import com.example.springhibernate.service.TestService;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;

/**
 * TestServiceImpl
 *
 * @author zhouxianfeng
 * @date 2021-4-15
 */
@Component
@Validated
public class TestServiceImpl implements TestService {
    @Override
    public Company getCompany(@Valid Company company) {
        return company;
    }
}
